package edu.sctu.zcy.month201505.subwaysystem.V3;

/**
 * Created by user24 on 2015/6/2.
 */
public class SubweyTravel {


    public boolean is_normal;
    public String string1 = "行驶出现异常";
   public boolean is_Normal(String string){

      if(string1.contains(string)){

          is_normal = true;
      }
       else {
          is_normal = false;
      }

       return is_normal;
   }

    public void getIs_normal(){

        if(is_Normal("异常")){

            System.out.println("乘客们，行驶出现问题，请不要慌张，请有序的退出地铁站\n");

        }else {

            System.out.println("\n行驶一切正常");
        }
    }

}
